using System;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace Aop.Api.Domain
{
    /// <summary>
    /// AlipaySocialBaseMcommentCommentAddModel Data Structure.
    /// </summary>
    [Serializable]
    public class AlipaySocialBaseMcommentCommentAddModel : AopObject
    {
        /// <summary>
        /// 请求流水号，用于幂等控制，防重复提交。  取值规则：uid+@+时间戳long型值
        /// </summary>
        [XmlElement("biz_no")]
        public string BizNo { get; set; }

        /// <summary>
        /// 评论的文字内容
        /// </summary>
        [XmlElement("content")]
        public string Content { get; set; }

        /// <summary>
        /// 图片信息  1、type为image时，此项为必填项  2、type非image时，此项数据无效
        /// </summary>
        [XmlArray("img_infos")]
        [XmlArrayItem("comment_image_info")]
        public List<CommentImageInfo> ImgInfos { get; set; }

        /// <summary>
        /// 链接信息  1、type为link时，此项为必填项  2、type非link时，此项数据无效
        /// </summary>
        [XmlElement("link_info")]
        public CommentLinkInfo LinkInfo { get; set; }

        /// <summary>
        /// 评分，取值为整数（可根据展示规则自定义满分值）
        /// </summary>
        [XmlElement("score")]
        public long Score { get; set; }

        /// <summary>
        /// 被评论对象ID
        /// </summary>
        [XmlElement("target_id")]
        public string TargetId { get; set; }

        /// <summary>
        /// 评论的类型（四选一）：  text：纯文本，  image：图片，  video：视频，  link：链接
        /// </summary>
        [XmlElement("type")]
        public string Type { get; set; }

        /// <summary>
        /// 评论发表者的支付宝ID
        /// </summary>
        [XmlElement("user_id")]
        public string UserId { get; set; }

        /// <summary>
        /// video信息  1、type为video时，此项为必填项  2、type非video时，此项数据无效
        /// </summary>
        [XmlElement("video_info")]
        public CommentVideoInfo VideoInfo { get; set; }
    }
}
